package com.aerotechnic.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonProperty;

@Entity
@Table(name = "User")
public class User extends Personne {

	
	@Column(name="profile")
	private String profile;// type est soit administrateur ou responsable
	@Column(name="login")
	private String login;
	@Column(name="password")
	private String password;
	
	@JsonProperty("Login")
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	
	@JsonProperty("Password")
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	@JsonProperty("Profile")
	public String getProfile() {
		return profile;
	}
	public void setProfile(String profile) {
		this.profile = profile;
	}
	@Override
	public String toString() {
		return "User [profile=" + profile + ", login=" + login + ", password="
				+ password + ", nom=" + nom + ", prenom=" + prenom + ", id="
				+ id + "]";
	}
	
}
